sample working properly