small bug fix and new type