return ret properly