shorten overflowing code