add getAllete function for test