use explicite cast from double to int