script for 3kinds