improve spec2, delete print statement spec1