remove space, fix indentation etc.