changed code from phazyme to jasonwjeong