fixed basic errors in edited code