applied better solution