updated and working insertSprint