type converting from int to doulbe for making sure
bug fixed