added condition to handle curve objects