added record mode