refactoring murphyif

Change-Id: I4c85f96c91c381d41306f7f9fcec1807e7d44dc0