updated aur functions
fixed type error