make mkocztorz's code working