refactored working for kostenplan