started writing auto-size code