this block doesn't work for datetime objects