add EXIT FUNCTION to return from function returning nothing