remving comlexity as suggested by code climate