added availability and date type