fix to method error