testing space function