try using parameters instead of different methods