refactored karma