commit resource