now methods and formals has equals func