alternative for sum