returns float instead of int for agrr method