fixed wrong indentation
minor optimization