try write sub