finished data entry code