reworked the assignment into the correct format