two separate functions are better than one with two jobs.