fixes based on review comments.
fixed indentation.