effectg modified but causing errors