fixed the wrong method