cleaned up the member section's code