changing my code to gist