set defer resolve to object