adding error manipulation