fix indentation, spacing and nestings finish