move objects function to separate module
refactoring