changed time to varchar from int