added a method to get the type of jump