date function moved to coffee