fixed the bug in all functions which have map and each: if we count from zero, we count from zero, no need to add 1 first and then substract it