tweaked to make work with intel compiler