corrected the fucking light bug using pointer to first element of array