fixed a method header that returns the date