added raises function