fixing raise syntax