modified indentation logic