shortened code, minified using YUI compressor