enforcing sentence creation by checking parameters