trying to do a function in 10 lines or less