change length and tomatos when edit