add and update answer rule