finally, sample's working