added cast to remove warning