add more case for leave api