fixed dependancy
fixed issue with sortByZ