fixing exposure function