simplification successful: with more methods and switch case