changed interface works correctly