correcting method definition