added the logic to the jewel model