reusing code.

Change-Id: I9c7728185c0ff0b9111b9e9e7855223a896e1f7b