procedura wejść i wyjść