add setDefaultZ() method to all objects