renaming declare pattern
allowing method declaration