added spin mode feature