added blackBody util