change interval based on port