ah, is this code taken from somewhere else then?