rough implementation of kill