added simple mode solution