fixed staff bug, and add new staff function.