added cast
debugging