fixed typos, int-long mismatch in timestamp()