trying to improve CPU performance