pointer used in methods arguments