you could probably move that onto the class to avoid repetition