minor modifications to linearSim