putting definitions in right order