removed an double to int cast