update

A small bug in the recordErrorProfile function is fixed