changed flux generator