shorten code a bit
add minified version