improve size of fraction script