getting stuck in shift.js