removed unnecessary codec call