fixed near method errror