added cast to prevent warning