added code for single jump