add three part code