improvements for RES