formatting too long function