added helper function for listing