wireless system modelling related code