fixed stupid cpu usage