added a simluated clock