working implementation of shortener