added debug retval