added check element still exists
added minified