introduced am/pm functionality