close file
some nitpicks before I start to break everything
remove ordering, only order based on z value