fixed ree errors