Changed method name and correct code