moving spawn to private method