replaced 100/128 with variable