refactoring to allow for multiple works