Removed redundant code
Fixed method name