c/1/project refactoed into functions