modified but lots of error