added Jams code