adding method to custom return code