sort out erroneous destroy functionality