updating render math method