refactored ALT workaround