added type filter
improved document