putting stuff in right order