modify template
query remain items