working version of method declaration on versions