change domain to start from 0 for width