refactored code and added tm to create project successfully