implemented respawning