inline function for adding / removing flux
moving remove flux to a function
add field for glue