removed unecessary test
fixed type but