scalability plots and code