fixed some bounds