cleaned up cpu script