fix stupid remove function