fixed incorrect method definition