modified the getObj functions for all