getDate method appears twice