fixing the get func