updated to make compatible with KF5