fixed documentation and renamed duplicate method