removed redundant code and check whitespace