finally got the right fix for stupid error