resolved several errors.