add object refresh function