don't build lps of size larger than 1e3