works on big data+fixed typo