timestamp conversion to text seems to be off. need to look at it