removed errors from code