fixed block remove function