shorten arrays