method error fixed

method error fixed