removed ghost spawn code