make number reading more strict
remove unnecessary type constraints