added code errors