trying to replace all double with just Int