commit activity first