cleaning up the syntax for dplyr