added time.h
better debug