removed cast to int