added spin script for cap