add maxListHeight to args
code cleanup