Removed template constraint in dot function