added contants check

Solves #40