trying functions, with zero success :(