tony's usefull code