remove redundant declarations
allow types in methods