move get project outside of loop