fixed printing, added type:sample