bird function working