made code simple