modification to filterAppByUsername