use constants instead of scalars