code closer to working...