Thank you for pointing out the error.
i completely forgot to check that out.
will use your advice but i never really understood what using namespace std was used for.