added logic to Parameters