organizes the code