added option of only doing spaces or forms