timestamp works properly