refactor languages slot