fixed wrong methods used