Effects of immobilization on activity of bacteria