changed dom size from int to double