added sample analysis