added dependices
fixed minor bug