Hardware and performance

optimize performance