not sure if this compiles,,,the idea is there