changed type from long to double