improve core math