maks shadow invisible and fixxed initializition of first row calculation