Beresin versi 2

Optimizing some shits