working on API filter