enhanced a few math commands