changes some magic numbers -> defines