fix indentation an misc syntax