cs file updated for error check