some work with sample calculating