code cleaning
use parameter instead of constant