makes functions and mixing partial files