added the second method in application helper