improved assignment listing code