Fixed returnExp function