remove extra variable equations
move helper function to down according to styleguides
instead of equating properties of object, initialize whole object with those properties inside