use z coordinate to activate GPU acceleration