added all variables needed.