asimplified Code