fixing bug 1

now working