updated to 1 line of code implementation