added auto bounds stuff