get the nil in the correct order