clean up code

Signed-off-by: Aaron Chiu <aaronechiu@fb.com>