added modulus to yacc so mod now works