prints in order