added test code fot tim