replace java.util.List
document stack size