+ fixed improper index with casting it as (int)