begin adding sorting