what does it return? not sure i follow the logic?