code clean up (redux)