removed extra parameter from translation function