removed spaces and tabs mixture from function