magic number - rate in what - make this a const