added gray and bin