work in progress
filtering on the z value