fixing black overflow