added constraint to reservation class