some more code to slowly move state for easy visualization