improved syntax and code style

Authored by devanshuagarwal on Jun 25 2019, 6:01 PM.