write proper constraints for dependencies