fixed wrong method definition