renamed method and removed unnecessary assert statement