Spin tracking in RHIC