working on handling small xx