fix measurements + undefined results