error coding added