removing duplicate method