all functionality except filtering not working properly