working on sorting and such. seems much more easy than previously thought