changed subir to dir in output