pointer is not member of function... thats the error i got.