magic const 8 to var size

need to change in other files if this is to be useful