prettifying date, fixing params error;