some cosmetics in this method. did you happen to c+p this from somewhere else? if so, what about copyright?