add the interface and update query.m for interface reason