added delay timer