refactor kull class