added Inside function
updated volumephotonmap