added some bounds stuff