fixed brick gradient check stuff