remove models. repetitiveness
split up big function
split up big function
remove redundant parens