briging code into line with gist