removed unwanted date function