fixed return type in getDates