processing script for SPACE