fix bound problems

minor changes to kill, added some comments