fixed accordion function
updated accordion function via sandi