added time feature stuff and patient feature stuff