writing animation bits