Interplanetary magnetic field direction and the configuration of the day side magnetosphere