fixed width algorithm implemented