added update condition
added params arrry