prepare for paramter estimation