better activity code