adaptation to calculate/gentoo