methods declaration error