changed from author to userId