implement Stefan's comment