added variables
updated script
added tables