if you're doing this a lot perhaps write a helper function?