rename sparrow setup function