commiting two assingmnets