replaced int with double