working on dtype bug