Is it ok to change this sentence: " I was awakened by dogs that were barking loudly." to: " I was awakened by loudly barking dogs." ?