removed redundant variables for friends and members