move gems to beginning of the process