remove unused math functions