to apply the proper remedy