more readable LMP code