minor function added