weird mutable state issue fixed