update of how slow code