fix dates-->double
implemented scales