adding code type and date