added limit to available filter function. needs more testing.