change order of print for debugging