remove anti-pattern (transferring props to state)