fixed the first-method