add back smarter beginning of line function