better way to solve the dot issue