added exceptions for continue and break