put entries in the right place