attempts to calculate without FOR