now prints in order