syntax fix. error handling.