moving functionality to a more specific file