added record functionality v1.0