Updated functions

get-avial.. fix