made slight modification to what you suggested