sorting stuff, begining