recreate space functions