removed incorrect reference to $user