fixed whitespace issues plus function definition

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>