moved the interface_result logic under if statement