improve object list code