optimise speed of translate
removed the assertion code, because this functions gets called a lot
removed old deprecated stuff
updated header
renamed for consistency
avoid +1 and then -1 in indexing