made changes to reflect user authorization