simplified by removing IR