better solution to sum two