simplified solution